package com.huamoxi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huamoxi.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    // 根据用户id查询角色列表
    List<Role> findRolesByUserId(Long id);
}
